package com.imooc.web;

import org.apache.curator.framework.CuratorFramework;

public class ZkCurator {
	private CuratorFramework client;

	public ZkCurator(CuratorFramework client) {
		this.client = client;
	}

	private void init() {
		client = client.usingNamespace("zk-curator-connector");
	}

	public boolean isZkAlive(){
		return client.isStarted();
	}
}
